package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.NormalExamineDetail;
import com.ruoyi.system.mapper.NormalExamineDetailMapper;
import com.ruoyi.system.service.NormalExamineDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/10/4
 **/
@Service
public class NormalExamineDetailServiceImpl implements NormalExamineDetailService {
    @Resource
    private NormalExamineDetailMapper normalExamineDetailMapper;

    @Override
    public List<NormalExamineDetail> selectList(NormalExamineDetail normalExamineDetail) {
        return normalExamineDetailMapper.selectList(normalExamineDetail);
    }

    @Override
    public NormalExamineDetail selectById(Long id) {
        return normalExamineDetailMapper.selectById(id);
    }

    @Override
    public Boolean create(NormalExamineDetail normalExamineDetail) {
        return normalExamineDetailMapper.insert(normalExamineDetail) == 1;
    }

    @Override
    public Boolean update(NormalExamineDetail normalExamineDetail) {
        return normalExamineDetailMapper.update(normalExamineDetail) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return normalExamineDetailMapper.deleteById(id) == 1;
    }
}
